package com.hyt.it.ogt.kq.service.govData.model.entity.kz;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.hyt.core.base.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotNull;

/**
 * <p>
 * 考生信息
 * </p>
 *
 * @author 刘恒活
 * @since 2020-05-15
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@TableName("kw_exam_candidate_info")
@ApiModel(value="ExamCandidateInfo对象", description="考生信息")
public class ExamCandidateInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "考试ID")
    private String examId;

    @ApiModelProperty(value = "考试考生ID")
    private String examCandidateId;

    @ApiModelProperty(value = "配置代码，保存考生配置信息ID", required = true)
    @Length(min=1, max = 32, message = "配置代码不能为空且长度在[1,16]之间")
    @NotNull(message = "配置代码不能为空")
    private String configCode;

    @ApiModelProperty(value = "配置值")
    private String configValue;

    @TableField(exist = false)
    private String componentType;
}
